package org.xqp.hrm.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.xqp.hrm.util.PageList;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class AggPageList extends PageList {

    /* 聚合结果
    {
        "tenantNameAgg": [ {"name":"源码时代",“count”：10 }，{"name":"源码时代2",“count”：20 } ]
        "gradeNameAgg" : [ {"name":"白金",“count”：10 }，{"name":"王者",“count”：20 } ]
    }
    */
    private Map<String,List<TermsAggBucket>> termsAggResult = new HashMap<>();

    public AggPageList(){}

    public AggPageList(Long total,List rows , Map<String,List<TermsAggBucket>> termsAggResult){
        super(total,rows);
        this.termsAggResult = termsAggResult;
    }

}
